<%@ page import="java.util.Enumeration"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<p>
	<b>real path:</b>
	<%
		Enumeration e;
	    out.print(request.getRealPath(""));
	%>
</p>
<p>
	<b>url path:</b>
	<%
	    out.print(request.getRequestURI());
	%>
</p>




<h3>getParameterNames list:</h3>
<p>
	<%
	    e = request.getParameterNames();
	    while (e.hasMoreElements()) {
	        String s = e.nextElement().toString();
	        out.println(s + ": " + request.getParameter(s) + "<br>");
	    }
	%>
</p>



<h3>getgetSessionAttribute list:</h3>
<p>
	<%
	    e = request.getSession().getAttributeNames();
	    while (e.hasMoreElements()) {
	        String s = e.nextElement().toString();
	        out.println(s + ": " + request.getSession().getAttribute(s) + "<br>");
	    }
	%>
</p>


<h3>getHeaderNames list:</h3>
<p>
	<%
	    e = request.getHeaderNames();
	    while (e.hasMoreElements()) {
	        String s = e.nextElement().toString();
	        out.println(s + ": " + request.getHeader(s) + "<br>");
	    }
	%>
</p>

<h3>getAttributeNames list:</h3>
<p>
	<%
	    e = request.getAttributeNames();
	    while (e.hasMoreElements()) {
	        String s = e.nextElement().toString();
	        out.println(s + ": " + request.getAttribute(s) + "<br>");
	    }
	%>
</p>
